package com.zhijian.warehouse.manage.service;

import com.zhijian.warehouse.manage.entity.export.AccessFacilityRecordExportVo;
import com.zhijian.warehouse.manage.entity.export.AccessIllegalRecordExport;
import com.zhijian.warehouse.manage.entity.po.AccessFacilityRecord;
import com.zhijian.warehouse.manage.entity.vo.request.AccessFacilityDelVo;
import com.zhijian.warehouse.manage.entity.vo.request.AccessFacilityRecordSearchVo;
import com.zhijian.warehouse.manage.entity.vo.request.AccessFacilityRecordSaveOrUpdateVo;
import com.zhijian.warehouse.manage.entity.vo.response.AccessFacilityRecordVo;
import com.zhijian.util.page.Page;

import java.util.List;

/**
 * 通道门标签感应记录 业务处理层
 *
 * @author auto
 * @version 1.0
 * @date 2024-10-28 17:42:23
 */
public interface AccessFacilityRecordService {

    /**
    * 主键查询
    *
    * @param id
    * @return
    */
    AccessFacilityRecord selectById(Long id);

    /**
    * 主键查询vo
    *
    * @param id
    * @return
    */
    AccessFacilityRecordVo selectVoById(Long id);

    /**
    * 按照主键删除
    *
    * @param id
    */
    void deleteById(Long id);

    /**
    * 按照主键批量删除
    *
    * @param idList
    */
    void deleteByIdList(List<Long> idList);

    /**
    * 新增
    *
    * @param accessFacilityRecord
    * @return
    */
    Long insert(AccessFacilityRecord accessFacilityRecord);

    /**
    * 动态新增
    *
    * @param accessFacilityRecord
    * @return
    */
    Long insertSelective(AccessFacilityRecord accessFacilityRecord);

    /**
    * 更改
    *
    * @param accessFacilityRecord
    * @return
    */
    boolean update(AccessFacilityRecord accessFacilityRecord);

    /**
    * 动态修改
    *
    * @param record
    * @return
    */
    boolean updateByPrimaryKeySelective(AccessFacilityRecord record);

    /**
    * 保存
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean save(AccessFacilityRecordSaveOrUpdateVo saveOrUpdateVo);

    /**
    * 编辑
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean modify(AccessFacilityRecordSaveOrUpdateVo saveOrUpdateVo);

    /**
    * 列表
    *
    * @param accessFacilityRecordSearchVo
    * @return
    */
    AccessFacilityRecordVo selectOne(AccessFacilityRecordSearchVo accessFacilityRecordSearchVo);

    /**
    * 总数
    *
    * @param accessFacilityRecordSearchVo
    * @return
    */
    Integer count(AccessFacilityRecordSearchVo accessFacilityRecordSearchVo);

    /**
    * 列表
    *
    * @param accessFacilityRecordSearchVo
    * @return
    */
    List<AccessFacilityRecordVo> selectList(AccessFacilityRecordSearchVo accessFacilityRecordSearchVo);

    /**
    * 分页查询
    *
    * @param accessFacilityRecordSearchVo
    * @return
    */
    Page<AccessFacilityRecordVo> selectPage(AccessFacilityRecordSearchVo accessFacilityRecordSearchVo);

    /**
    * 批量新增数据（MyBatis原生foreach方法）
    *
    * @param entities 实例对象列表
    * @return 影响行数
    */
    boolean insertBatch(List<AccessFacilityRecord> entities);


    List<AccessIllegalRecordExport> selectIllegalExportList(AccessFacilityRecordSearchVo param);

    /**
    * 导出通道门标签感应记录
    *
    * @param param
    * @return
    */
    List<AccessFacilityRecordExportVo> selectFacilityList(AccessFacilityRecordSearchVo param);

    /**
    * 关闭异常信息
    *
    * @param param
    * @return
    */
    boolean delMsg(AccessFacilityDelVo param);
}